import upload from '@/utils/upload'
import request from '@/utils/request'

// 首页条件查询文章列表
export function cmsParamsList(query) {
	return request({
		url: '/cms/blog/cms/cmsParamsList',
		headers: {
			isToken: false
		},
		method: 'get',
		params: query,
		timeout: 40000,
	})
}

// 首页查询文章详细
export function getBlogDetail(id) {
	return request({
		url: '/cms/blog/cms/detail/' + id,
		headers: {
			isToken: false
		},
		method: 'get',
		timeout: 40000,
	})
}

// 首页查询推广列表
export function cmsBannerIndexList() {
	return request({
		url: '/cms/pic/findIndexPic',
		method: 'get',
		headers: {
			isToken: false
		},
		timeout: 40000,
	})
}

// 查询宣传列表
export function cmsPublicizeIndexList() {
	return request({
		url: '/cms/publicize/findIndexList',
		method: 'get',
		headers: {
			isToken: false
		},
		timeout: 40000
	})
}

// 查询展示作者列表
export function findIsShowWriterList() {
	return request({
		url: '/cms/blog/cms/findIsShowWriterList',
		method: 'get',
		headers: {
			isToken: false
		},
		timeout: 40000
	})
}

// 查询舞台视频展示列表
export function findIndexPageList(query) {
  return request({
    url: '/cms/video/findIndexPageList',
    method: 'get',
    params: query
  })
}